package com.xsx.mybatis.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.xsx.mybatis.bean.Users;

public interface UsersMapper {
	
	public Users getUserByresultMap(Integer id) ;
	public List<Users> getUsersListByPid(Integer pid);
	public Users getUserByMap(Map<String, Object> map) ;
	public Users getUserByOBJ(Users user) ;
	public Users getUserById(Integer id) ;
	public Users getUserByIdAndName(@Param("id")Integer id,@Param("username")String str) ;
	public Long addUser(Users user) ;
	public void delUser(Integer id);
	public void modUser(Users user);
	
	public Users getUserAndDeptById(Integer id);
	public Users getUserdisc(Integer id);
	public List<Users> getAllusers();

}
